<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('GoodsActivity/index')}">秒杀活动</a></li>
        <li><a href="{:url('GoodsActivity/add')}">添加秒杀</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('GoodsActivity/index')}">
        店铺名称:
        <input type="text" class="form-control" name="name" value="{:input('request.name/s','')}" placeholder="请输入店铺名称">
        活动状态:
        <select name="type" class="form-control">
            <option value="0">--全部--</option>
            <option <if condition="$type && $type eq 1"> selected </if> value="1">--已结束--</option>
            <option <if condition="$type && $type eq 2"> selected </if> value="2">--正在进行--</option>
            <option <if condition="$type && $type eq 3"> selected </if> value="3">--暂未开始--</option>
        </select>
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('GoodsActivity/index')}">清空</a>
    </form>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th>ID</th>
                <th>开启活动店铺</th>
                <th>活动开始时间</th>
                <th>活动结束时间</th>
                <th>参加活动商品</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.shopname}</td>
                    <td>{$vo.stime}</td>
                    <td>{$vo.etime}</td>
                    <td>{$vo.goods}</td>
                    <td>{$vo.type}</td>
                    <td>
                        <a class="btn btn-xs btn-primary" href="{:url('GoodsActivity/edit',array('id'=>$vo['id']))}">编辑</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page|default=''}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>